package com.yc.bigdata.kafka.config;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.yc.bigdata.common.utils.JsonUtil;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import lombok.extern.slf4j.Slf4j;

/**
 * <p>Web启动配置</p>
 * <pre>
 *     1.添加拦截器
 * </pre>
 *
 * @version 1.0
 * @author:Yuan childe
 * @date:2017/11/16 001615:56
 * @history
 */
@Slf4j
@Configuration
public class WebMvcConfig implements WebMvcConfigurer {

    @Bean
    public ObjectMapper ObjectMapper() {
        ObjectMapper objectMapper = JsonUtil.getObjectMapper();
        return objectMapper;
    }

}
